unit aviso;

interface

uses
  Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
  Dialogs, ExtCtrls, StdCtrls, Buttons;

type
  Tfrmaviso = class(TForm)
    Label1: TLabel;
    BitBtn1: TBitBtn;
    BitBtn2: TBitBtn;
    procedure BitBtn1Click(Sender: TObject);
    procedure BitBtn2Click(Sender: TObject);
    procedure FormShow(Sender: TObject);
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var
  frmaviso: Tfrmaviso;
  botao_aviso:string;

implementation

{$R *.dfm}

procedure Tfrmaviso.BitBtn1Click(Sender: TObject);
begin
  botao_aviso:='sim';
  FrmAviso.Close;
end;

procedure Tfrmaviso.BitBtn2Click(Sender: TObject);
begin
  botao_aviso:='nao';
  FrmAviso.Close;
end;

procedure Tfrmaviso.FormShow(Sender: TObject);
begin
  BitBtn2.setfocus;
end;

end.
